import http from '../index'

export const selectAll=() => http({
    url: '/api/graph/selectAll',
    method: 'get'
})

export const styleUpload=(data) => http({
    url: '/api/graph/styleUpload',
    method: 'post',
    data
})

export const add=(data) => http({
    url: '/api/graph/add',
    method: 'post',
    data
})

export const del=(params) => http({
    url: '/api/graph/delete/?'+params,
    method: 'delete'
})

export const updateGraph=(data) => http({
    url: '/api/graph/updateGraph',
    method: 'put',
    data
})